<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns:j="http://www.oracle.com/swing"
      xmlns:ui='http://swinghtmltemplate.googlecode.com/ui'>
<head>
    <title>Соединение с хабом</title>
    <j:action actionname='retrieve' onaction='refreshHubs'/>
    <j:action actionname='edit' onaction='editSources'/>
    <j:action actionname='clear' onaction='clear'/>
    <j:action actionname='connect' onaction='connect' title='Соединиться'/>
    <j:action actionname='addToFav' onaction='addToFavourites' title='Добавить в избранное'/>
    <!--<ui:loadBundle baseName="ru.dc.gui.swing.PublicHubs" var='msg' />-->
    <style type="text/css">
        #sources {
            min-width: 200;
            max-width: 200;
            width: 200;
        }

        .retrieveNormal {
            icon: /icons/ajax-loader-static.gif;
            enabled: true;
        }

        .retrieveWork {
            icon: /icons/ajax-loader.gif;
            enabled: false;
        }

    </style>
</head>
<body style="display:border; border: empty 12 12 12 12" id='rootPanel'>

    <j:popupMenu for="#hubs">
        <j:menuItem actionname='connect'/>
        <j:menuItem actionname='addToFav'/>
    </j:popupMenu>

    <j:scroll>
        <j:dataTable id='hubs' value='${hubsModel.hubs}' ondblclick="onTableDblClick"
                     selectedElement="${hubsModel.selectedHub}">
            <j:column value="${address}" title="Address" readonly='true'/>
            <j:column value="${name}" title="Name" readonly='true'/>
        </j:dataTable>
    </j:scroll>


    <form align="bottom" style="x-miglayout-column-constraints: []related[]related[]related[];">

        <j:combobox id='sources' selectedElement="${sourcesModel.selectedSource}" align="width 200">
            <j:selectItems value="${sourcesModel.sources}"/>
        </j:combobox>

        <input type='button' value="Получить" id='retrieveBtn' class='retrieveNormal' onclick="refreshHubs"/>
        <input type='button' value="Очистить" id='clearBtn' onclick="clear"/>
        <input type='button' value="Источники" id='sourcesBtn' onclick="editSources"/>

    </form>



</body>
</html>